#include <SoftwareSerial.h>
SoftwareSerial SS1(3,2);  //RX,TX
String Buffer = "";

void setup() {
  // put your setup code here, to run once:
  InitCar();
}

void loop() {
  //Serial.println(analogRead(A2));
  //SS1.println("hello world");
  while(SS1.available()>0)
  {
    Buffer += (char)SS1.read();
  }
  Serial.println(Buffer);
  Buffer = "";
  delay(500);
}

void InitCar()
{
  Serial.begin(115200);
  pinMode(A2,INPUT);
  SS1.begin(9600);
  SS1.listen();
}
